package org.agony2d.view.supportClasses 
{
	import org.agony2d.view.puppet.DisplayObjectContainerPuppet;
	
	import org.agony2d.core.agony_internal;
	use namespace agony_internal;
	
public class DisplayObjectContainerButton extends AbstractButton 
{
	
	public function DisplayObjectContainerButton() 
	{
		super()
		m_container = new DisplayObjectContainerPuppet()
		this.addElement(m_container)
		
		this.addReleaseEffectListener(onRelease);
		this.addPressEffectListener(onPress);
		this.addLeaveEffectListener(onLeave)
		this.addHoverEffectListener(onHover)
	}
	
	
	/** 容器 **/
	final public function get container() : DisplayObjectContainerPuppet
	{
		return m_container
	}
	
	
	override agony_internal function dispose() : void
	{
		m_container = null
		super.dispose();
	}
	
	
	agony_internal function onRelease() : void
	{
	}
	
	agony_internal function onPress() : void
	{
	}
	
	agony_internal function onLeave() : void
	{
	}
	
	agony_internal function onHover() : void
	{
	}
	
	agony_internal function onInvalid() : void
	{
	}
	
	
	agony_internal var m_container:DisplayObjectContainerPuppet
}
}